﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace Nanohope_v1._0
{
    class QuestLog : GeneralCanvas
    {
        private KeyboardState keyState;
        private bool UP;
        private bool DOWN;
        private bool LEFT;
        private bool RIGHT;
        private bool ESC;
        private bool ENTER;

        public QuestLog(PlayerStats stats)
        {

        }

        public override void gameUpdate(GameTime gameTime)
        {
            
        }

        public override void onDraw(SpriteBatch spriteBatch)
        {
            spriteBatch.DrawString(Game1.font, "QuestLog", new Vector2(50, 50),  Color.White);
        }

        protected override void checkKeys(GameTime gameTime)
        {
            keyState = Keyboard.GetState();
            if (keyState.IsKeyDown(Keys.Up))
            {
                UP = true;
            }
            else
            {
                UP = false;
            }
            if (keyState.IsKeyDown(Keys.Down))
            {
                DOWN = true;
            }
            else
            {
                DOWN = false;
            }
            if (keyState.IsKeyDown(Keys.Left))
            {
                LEFT = true;
            }
            else
            {
                LEFT = false;
            }
            if (keyState.IsKeyDown(Keys.Right))
            {
                RIGHT = true;
            }
            else
            {
                RIGHT = false;
            }
            if (keyState.IsKeyDown(Keys.Enter))
            {
                ENTER = true;
            }
            else
            {
                ENTER = false;
            }
            if (keyState.IsKeyDown(Keys.Escape))
            {
                ESC = true;
            }
            else
            {
                ESC = false;
            }
        }
    }
}
